<!DOCTYPE html>
<html>
    <head>
        <title>demo</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <style>
            body {
                font-family: Monospace;
                background-color: #f0f0f0;
                margin: 0px;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        <script src="https://cdn.bootcdn.net/ajax/libs/three.js/73/three.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/tween.js/0.11.0/Tween.min.js"></script>
		<script src="https://unpkg.com/three@0.73.1/examples/js/controls/TrackballControls.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/stats.js/10/Stats.min.js"></script>
        <script>

            var jsonstr = '[{"boxId":"9861828110002_0500191G364P0400500-8_0","x":-54.400002,"y":-77.500000,"z":-464.500000,"width":123.000000,"height":105.000000,"length":263.000000,"weight":467.000000,"platform":"platform32","order":1,"material":"","type":1,"place":100},{"boxId":"9861828110002_1480100K840-1_0","x":-77.400002,"y":40.000000,"z":-480.000000,"width":77.000000,"height":130.000000,"length":232.000000,"weight":265.000000,"platform":"platform32","order":2,"material":"","type":1,"place":100},{"boxId":"9861828110002_00J69207027260565474-4_0","x":-89.650002,"y":115.250000,"z":-574.750000,"width":42.500000,"height":20.500000,"length":52.500000,"weight":9.150000,"platform":"platform32","order":3,"material":"","type":1,"place":200},{"boxId":"9861828110002_34401919898P0400500-20_0","x":-19.650000,"y":-11.500000,"z":-528.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform32","order":4,"material":"","type":1,"place":100},{"boxId":"9861828110002_58601021258-5_0","x":43.099998,"y":-21.500000,"z":-530.000000,"width":72.000000,"height":217.000000,"length":132.000000,"weight":340.500000,"platform":"platform32","order":5,"material":"","type":1,"place":100},{"boxId":"9861828030002_C0001047214P0500801-4_0","x":40.599998,"y":100.000000,"z":-552.500000,"width":67.000000,"height":26.000000,"length":87.000000,"weight":36.950001,"platform":"platform32","order":6,"material":"","type":1,"place":100},{"boxId":"9861828030002_C26010R0670P0500801-34_0","x":36.599998,"y":102.500000,"z":-489.500000,"width":39.000000,"height":31.000000,"length":59.000000,"weight":18.700001,"platform":"platform32","order":7,"material":"","type":1,"place":200},{"boxId":"9861828110002_C170199E797P0500800-10_0","x":47.099998,"y":-87.599998,"z":-404.000000,"width":80.000000,"height":84.800003,"length":120.000000,"weight":131.000000,"platform":"platform32","order":8,"material":"","type":1,"place":100},{"boxId":"9861828030002_C120192W578P0500800-2_0","x":46.849998,"y":-3.450000,"z":-434.000000,"width":60.000000,"height":83.500000,"length":79.500000,"weight":48.000000,"platform":"platform32","order":9,"material":"","type":1,"place":200},{"boxId":"9861828110002_0500191G367P0400500-12_0","x":-74.400002,"y":-97.500000,"z":-254.000000,"width":83.000000,"height":65.000000,"length":158.000000,"weight":88.500000,"platform":"platform32","order":10,"material":"","type":1,"place":100},{"boxId":"9861828030002_C270101C262P0500700-13_0","x":-75.900002,"y":-40.599998,"z":-273.000000,"width":80.000000,"height":48.799999,"length":120.000000,"weight":80.500000,"platform":"platform32","order":11,"material":"","type":1,"place":100},{"boxId":"9861828030002_C26010R0557P0500800-1_0","x":-85.900002,"y":25.549999,"z":-293.000000,"width":60.000000,"height":83.500000,"length":80.000000,"weight":51.500000,"platform":"platform32","order":12,"material":"","type":1,"place":100},{"boxId":"9849878270001_00I69207027380331076-2_0","x":-96.900002,"y":-107.500000,"z":31.500000,"width":38.000000,"height":45.000000,"length":413.000000,"weight":81.500000,"platform":"platform32","order":13,"material":"","type":1,"place":100},{"boxId":"94267840T005792","x":-20.150000,"y":19.500000,"z":-577.250000,"width":37.500000,"height":35.000000,"length":37.500000,"weight":4.660000,"platform":"platform05","order":14,"material":"","type":1,"place":100},{"boxId":"94267840T005793","x":-94.550003,"y":111.500000,"z":-527.150024,"width":42.700001,"height":13.000000,"length":52.700001,"weight":2.720000,"platform":"platform05","order":15,"material":"","type":1,"place":100},{"boxId":"9851973520005_spu-REP-INNER-04092724-1","x":-102.900002,"y":126.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":16,"material":"","type":1,"place":100},{"boxId":"9851973520006_spu-REP-INNER-04092724-1","x":-76.900002,"y":126.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":17,"material":"","type":1,"place":100},{"boxId":"9851973520006_spu-REP-INNER-04092724-1-1","x":-102.900002,"y":128.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":18,"material":"","type":1,"place":100},{"boxId":"9851973520006_spu-REP-INNER-04092724-1-1-2","x":-76.900002,"y":128.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":19,"material":"","type":1,"place":100},{"boxId":"9851973520005_00I69207027310053643-12_0","x":-52.150002,"y":109.750000,"z":-577.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.830000,"platform":"platform09","order":20,"material":"","type":1,"place":100},{"boxId":"9851973520006_00I69207027310053643-12_0","x":-52.150002,"y":119.250000,"z":-577.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.830000,"platform":"platform09","order":21,"material":"","type":1,"place":100},{"boxId":"9819538780001_spu-REP-MIDDLE-28040025-","x":-53.400002,"y":125.500000,"z":-593.000000,"width":6.000000,"height":3.000000,"length":20.000000,"weight":0.100000,"platform":"platform09","order":22,"material":"","type":1,"place":200},{"boxId":"9819538780001_spu-REP-MIDDLE-28040025--1","x":-53.400002,"y":125.500000,"z":-587.000000,"width":6.000000,"height":3.000000,"length":20.000000,"weight":0.100000,"platform":"platform09","order":23,"material":"","type":1,"place":200},{"boxId":"9819538780001_spu-REP-MIDDLE-28040025--1-2","x":-53.400002,"y":125.500000,"z":-581.000000,"width":6.000000,"height":3.000000,"length":20.000000,"weight":0.100000,"platform":"platform09","order":24,"material":"","type":1,"place":200},{"boxId":"9819538780001_spu-REP-MIDDLE-28040025--1-2-3","x":-53.400002,"y":125.500000,"z":-575.000000,"width":6.000000,"height":3.000000,"length":20.000000,"weight":0.100000,"platform":"platform09","order":25,"material":"","type":1,"place":200},{"boxId":"9819538780001_spu-REP-MIDDLE-28040025--1-2-3-4","x":-53.400002,"y":125.500000,"z":-569.000000,"width":6.000000,"height":3.000000,"length":20.000000,"weight":0.100000,"platform":"platform09","order":26,"material":"","type":1,"place":200},{"boxId":"D79755A9-4081-4C8F-B462-1AC870756051","x":-62.900002,"y":127.500000,"z":-595.500000,"width":1.000000,"height":1.000000,"length":1.000000,"weight":0.000000,"platform":"platform09","order":27,"material":"","type":1,"place":100},{"boxId":"F6719229-6A27-4998-A30F-53A73E620863","x":-61.900002,"y":127.500000,"z":-595.500000,"width":1.000000,"height":1.000000,"length":1.000000,"weight":0.000000,"platform":"platform09","order":28,"material":"","type":1,"place":100},{"boxId":"9841166430001_00I69207027321099119_0","x":-20.400000,"y":48.750000,"z":-578.000000,"width":36.000000,"height":23.500000,"length":37.000000,"weight":2.600000,"platform":"platform09","order":29,"material":"","type":1,"place":200},{"boxId":"9819538780001_spu-REP-OTHERS-02311SWC-","x":-23.900000,"y":65.500000,"z":-581.000000,"width":30.000000,"height":10.000000,"length":30.000000,"weight":4.000000,"platform":"platform09","order":30,"material":"","type":1,"place":100},{"boxId":"9819538780001_spu-REP-OTHERS-02311SWC--1","x":-23.900000,"y":75.500000,"z":-581.000000,"width":30.000000,"height":10.000000,"length":30.000000,"weight":4.000000,"platform":"platform09","order":31,"material":"","type":1,"place":100},{"boxId":"9851973520005_spu-REP-INNER-04092724-1-1","x":-25.900000,"y":81.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":32,"material":"","type":1,"place":100},{"boxId":"9851973520005_spu-REP-INNER-04092724-1-1-2","x":-25.900000,"y":83.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":33,"material":"","type":1,"place":100},{"boxId":"9851973520005_spu-REP-INNER-04092724-1-1-2-3","x":-25.900000,"y":85.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":34,"material":"","type":1,"place":100},{"boxId":"9851973520006_spu-REP-INNER-04092724-1-1-2-3","x":-25.900000,"y":87.500000,"z":-583.000000,"width":26.000000,"height":2.000000,"length":26.000000,"weight":0.300000,"platform":"platform09","order":35,"material":"","type":1,"place":100},{"boxId":"9851973520006_C000100T483P0500800-15_0","x":-28.000000,"y":93.099998,"z":-587.349976,"width":17.299999,"height":9.200000,"length":21.799999,"weight":0.460000,"platform":"platform09","order":36,"material":"","type":1,"place":200},{"boxId":"9851973520005_00I69207027451237458-13_0","x":-20.650000,"y":13.750000,"z":-539.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":9.720000,"platform":"platform09","order":37,"material":"","type":1,"place":100},{"boxId":"9851973520006_00I69207027451237458-13_0","x":-20.650000,"y":13.750000,"z":-502.250000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":9.720000,"platform":"platform09","order":38,"material":"","type":1,"place":100},{"boxId":"9846940740001_00J69207027300600901-2_0","x":-20.650000,"y":37.250000,"z":-539.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":9.400000,"platform":"platform09","order":39,"material":"","type":1,"place":100},{"boxId":"9851973520006_00J69207027260632004-5_0","x":-20.650000,"y":37.250000,"z":-502.250000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":4.320000,"platform":"platform09","order":40,"material":"","type":1,"place":100},{"boxId":"9851973520006_00I69207027481044077-1_0","x":-20.650000,"y":60.750000,"z":-539.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":4.200000,"platform":"platform09","order":41,"material":"","type":1,"place":100},{"boxId":"9851973520005_00I69207027481044077-1_0","x":-20.650000,"y":60.750000,"z":-502.250000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":4.200000,"platform":"platform09","order":42,"material":"","type":1,"place":100},{"boxId":"9851973520006_C26010U2239P0500800-12_0","x":-20.650000,"y":84.250000,"z":-539.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":2.050000,"platform":"platform09","order":43,"material":"","type":1,"place":100},{"boxId":"9851973520005_C26010U2239P0500800-9_0","x":-20.650000,"y":84.250000,"z":-502.250000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":2.050000,"platform":"platform09","order":44,"material":"","type":1,"place":100},{"boxId":"9851973520005_C26010U2239P0500800-8_0","x":-20.650000,"y":107.750000,"z":-539.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":2.050000,"platform":"platform09","order":45,"material":"","type":1,"place":100},{"boxId":"9851973520006_C26010U2239P0500800-11_0","x":-20.650000,"y":107.750000,"z":-502.250000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":2.050000,"platform":"platform09","order":46,"material":"","type":1,"place":100},{"boxId":"9851973520005_9180100J480P0400500-11_0","x":-21.650000,"y":124.250000,"z":-546.000000,"width":25.000000,"height":9.500000,"length":34.500000,"weight":0.900000,"platform":"platform09","order":47,"material":"","type":1,"place":200},{"boxId":"9851973520006_9180100J480P0400500-14_0","x":-21.650000,"y":124.250000,"z":-521.000000,"width":25.000000,"height":9.500000,"length":34.500000,"weight":0.900000,"platform":"platform09","order":48,"material":"","type":1,"place":200},{"boxId":"9851973520006_C200196E614P0500800-10_0","x":-97.150002,"y":122.750000,"z":-542.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.300000,"platform":"platform09","order":49,"material":"","type":1,"place":200},{"boxId":"9819538780001_C220102J309P0500800-37_0","x":-97.150002,"y":122.750000,"z":-519.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":1.020000,"platform":"platform09","order":50,"material":"","type":1,"place":200},{"boxId":"9846940740001_C220193Y776P0500700-7_0","x":-61.950001,"y":109.750000,"z":-534.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.600000,"platform":"platform09","order":51,"material":"","type":1,"place":100},{"boxId":"9856686860007_6640190H611P0400700_0","x":-61.950001,"y":119.250000,"z":-534.750000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":52,"material":"","type":1,"place":100},{"boxId":"9856686860001_6640190H611P0400700_0","x":18.350000,"y":122.750000,"z":-490.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":53,"material":"","type":1,"place":100},{"boxId":"9856686860002_6640190H611P0400700_0","x":40.849998,"y":122.750000,"z":-490.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":54,"material":"","type":1,"place":100},{"boxId":"9851973520006_3600191H683P0400500-11_0","x":-98.150002,"y":110.000000,"z":-481.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":4.800000,"platform":"platform09","order":55,"material":"","type":1,"place":100},{"boxId":"9851973520005_3600191H683P0400500-11_0","x":-62.650002,"y":110.000000,"z":-481.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":4.800000,"platform":"platform09","order":56,"material":"","type":1,"place":100},{"boxId":"9819538780001_00I69207027420080005-17_0","x":-98.150002,"y":110.000000,"z":-443.049988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":4.700000,"platform":"platform09","order":57,"material":"","type":1,"place":100},{"boxId":"9819538780001_0360100G489P0400700-25_0","x":-62.650002,"y":110.000000,"z":-443.049988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":3.980000,"platform":"platform09","order":58,"material":"","type":1,"place":100},{"boxId":"9851973520005_00J69207027260511826-7_0","x":-98.150002,"y":110.000000,"z":-404.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":2.800000,"platform":"platform09","order":59,"material":"","type":1,"place":100},{"boxId":"9851973520006_00I69207027431738490-10_0","x":-62.650002,"y":110.000000,"z":-404.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":2.600000,"platform":"platform09","order":60,"material":"","type":1,"place":100},{"boxId":"9851973520005_00I69207027431738490-7_0","x":-98.150002,"y":120.000000,"z":-481.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":2.600000,"platform":"platform09","order":61,"material":"","type":1,"place":100},{"boxId":"9846940740001_7160190F238P0400500-5_0","x":-62.650002,"y":120.000000,"z":-481.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.220000,"platform":"platform09","order":62,"material":"","type":1,"place":100},{"boxId":"9851973520005_7160190F238P0400500-9_0","x":-98.150002,"y":120.000000,"z":-443.049988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.220000,"platform":"platform09","order":63,"material":"","type":1,"place":100},{"boxId":"9851973520005_C2601098786P0500801-14_0","x":-62.650002,"y":120.000000,"z":-443.049988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":1.150000,"platform":"platform09","order":64,"material":"","type":1,"place":100},{"boxId":"9851973520005_00I69207027300062031-16_0","x":-98.150002,"y":120.000000,"z":-404.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":0.850000,"platform":"platform09","order":65,"material":"","type":1,"place":100},{"boxId":"9851973520005_00I69207027300062031-15_0","x":-62.650002,"y":120.000000,"z":-404.549988,"width":35.500000,"height":10.000000,"length":38.500000,"weight":0.850000,"platform":"platform09","order":66,"material":"","type":1,"place":100},{"boxId":"9856686860005_6640190H611P0400700_0","x":-20.150000,"y":6.750000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":67,"material":"","type":1,"place":200},{"boxId":"9856686860008_6640190H611P0400700_0","x":-20.150000,"y":16.250000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":68,"material":"","type":1,"place":200},{"boxId":"9856686860003_6640190H611P0400700_0","x":-20.150000,"y":25.750000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":69,"material":"","type":1,"place":200},{"boxId":"9856686860009_6640190H611P0400700_0","x":-20.150000,"y":35.250000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":70,"material":"","type":1,"place":200},{"boxId":"9856686860006_6640190H611P0400700_0","x":-20.150000,"y":44.750000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":71,"material":"","type":1,"place":200},{"boxId":"9856686860004_6640190H611P0400700_0","x":-20.150000,"y":54.250000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":72,"material":"","type":1,"place":200},{"boxId":"9856686860010_6640190H611P0400700_0","x":-20.150000,"y":63.750000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.500000,"platform":"platform09","order":73,"material":"","type":1,"place":200},{"boxId":"9846940740001_C000196T380P0500800-9_0","x":-20.150000,"y":73.250000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.450000,"platform":"platform09","order":74,"material":"","type":1,"place":200},{"boxId":"9819538780001_1700190F534P0400700-41_0","x":-20.150000,"y":82.750000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.380000,"platform":"platform09","order":75,"material":"","type":1,"place":200},{"boxId":"9819538780001_81801912604P0400700-40_0","x":-20.150000,"y":92.250000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.340000,"platform":"platform09","order":76,"material":"","type":1,"place":200},{"boxId":"9819538780001_00J69207027081272779-12_0","x":-20.150000,"y":101.750000,"z":-472.250000,"width":22.500000,"height":9.500000,"length":37.500000,"weight":0.300000,"platform":"platform09","order":77,"material":"","type":1,"place":200},{"boxId":"9819538780001_0560100H029P0400500-15_0","x":45.750000,"y":58.849998,"z":-440.350006,"width":47.299999,"height":41.099998,"length":77.300003,"weight":120.000000,"platform":"platform09","order":78,"material":"","type":1,"place":200},{"boxId":"9846940740001_784H9032804-12_0","x":40.599998,"y":90.400002,"z":-442.250000,"width":43.500000,"height":22.000000,"length":67.000000,"weight":3.800000,"platform":"platform09","order":79,"material":"","type":1,"place":200},{"boxId":"9851973520005_00J69207027260565474-6_0","x":33.349998,"y":111.650002,"z":-442.750000,"width":42.500000,"height":20.500000,"length":52.500000,"weight":9.150000,"platform":"platform09","order":80,"material":"","type":1,"place":200},{"boxId":"9819538780001_C00019UE120P0500801-34_0","x":26.600000,"y":124.650002,"z":-450.500000,"width":27.000000,"height":5.500000,"length":39.000000,"weight":0.650000,"platform":"platform09","order":81,"material":"","type":1,"place":200},{"boxId":"9819538780001_38001911000P0400500-38_0","x":101.099998,"y":-113.500000,"z":-407.500000,"width":28.000000,"height":33.000000,"length":113.000000,"weight":12.500000,"platform":"platform09","order":82,"material":"","type":1,"place":100},{"boxId":"9846940740001_2760100Y242P0400500-6_0","x":99.849998,"y":-78.250000,"z":-419.500000,"width":25.500000,"height":37.500000,"length":89.000000,"weight":15.750000,"platform":"platform09","order":83,"material":"","type":1,"place":100},{"boxId":"9819538780001_0560100H029P0400500-15_6","x":45.750000,"y":-24.650000,"z":-380.350006,"width":47.299999,"height":41.099998,"length":77.300003,"weight":120.000000,"platform":"platform09","order":84,"material":"","type":1,"place":200},{"boxId":"9819538780001_0560100H029P0400500-15_5","x":45.750000,"y":16.450001,"z":-380.350006,"width":47.299999,"height":41.099998,"length":77.300003,"weight":120.000000,"platform":"platform09","order":85,"material":"","type":1,"place":200},{"boxId":"9853630340001_00J69207027320281494_0","x":25.350000,"y":45.750000,"z":-385.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":17.900000,"platform":"platform09","order":86,"material":"","type":1,"place":100},{"boxId":"9851973520006_0360100L296P0400500-3_0","x":61.849998,"y":45.750000,"z":-385.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":10.750000,"platform":"platform09","order":87,"material":"","type":1,"place":100},{"boxId":"9851973520005_8580190G565P0400700-3_0","x":25.350000,"y":63.250000,"z":-385.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":9.950000,"platform":"platform09","order":88,"material":"","type":1,"place":100},{"boxId":"9849024950001_00J69207027310238934-2_0","x":61.849998,"y":63.250000,"z":-385.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":6.960000,"platform":"platform09","order":89,"material":"","type":1,"place":100},{"boxId":"9846940740001_00J69207027170877715-8_0","x":40.599998,"y":95.500000,"z":-391.000000,"width":26.000000,"height":47.000000,"length":67.000000,"weight":20.500000,"platform":"platform09","order":90,"material":"","type":1,"place":200},{"boxId":"9855064510001_00J69207027040865248-1_0","x":24.350000,"y":123.750000,"z":-391.250000,"width":25.500000,"height":9.500000,"length":34.500000,"weight":1.380000,"platform":"platform09","order":91,"material":"","type":1,"place":200},{"boxId":"9856687650001_5910191L053P0400700_0","x":-95.800003,"y":94.800003,"z":-293.899994,"width":40.200001,"height":55.000000,"length":78.199997,"weight":12.000000,"platform":"platform09","order":92,"material":"","type":1,"place":100},{"boxId":"9819538780001_00J69207027200330926-5_0","x":28.100000,"y":-21.500000,"z":-297.000000,"width":72.000000,"height":217.000000,"length":122.000000,"weight":253.000000,"platform":"platform09","order":93,"material":"","type":1,"place":200},{"boxId":"9841166400001_77801017798P0400500-2_0","x":-4.400000,"y":95.750000,"z":-300.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":13.300000,"platform":"platform09","order":94,"material":"","type":1,"place":100},{"boxId":"9841166430001_00I69207027321099100_0","x":52.599998,"y":95.750000,"z":-300.500000,"width":57.000000,"height":17.500000,"length":65.000000,"weight":6.850000,"platform":"platform09","order":95,"material":"","type":1,"place":100},{"boxId":"9851973520006_00J69207027260565474-7_0","x":-11.650000,"y":114.750000,"z":-306.750000,"width":42.500000,"height":20.500000,"length":52.500000,"weight":9.150000,"platform":"platform09","order":96,"material":"","type":1,"place":100},{"boxId":"9851973520006_C2701934307P0500700-8_0","x":30.850000,"y":114.750000,"z":-306.750000,"width":42.500000,"height":20.500000,"length":52.500000,"weight":6.850000,"platform":"platform09","order":97,"material":"","type":1,"place":100},{"boxId":"9846940740001_C00019KV572P0500800-8_0","x":65.650002,"y":108.699997,"z":-314.049988,"width":27.100000,"height":8.400000,"length":37.900002,"weight":2.700000,"platform":"platform09","order":98,"material":"","type":1,"place":100},{"boxId":"9846940740001_6160100G113P0400501-3_0","x":40.599998,"y":-21.500000,"z":-225.000000,"width":72.000000,"height":217.000000,"length":147.000000,"weight":145.000000,"platform":"platform09","order":99,"material":"","type":1,"place":200},{"boxId":"9851973520005_34401919881P0400500-5_0","x":35.099998,"y":100.500000,"z":-241.750000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":100,"material":"","type":1,"place":200},{"boxId":"9848733500001_C000105S956P0500701-1_0","x":-13.900000,"y":121.500000,"z":-242.500000,"width":37.000000,"height":15.000000,"length":38.000000,"weight":2.300000,"platform":"platform09","order":101,"material":"","type":1,"place":200},{"boxId":"9846940740001_C26010KT418P0500800-6_0","x":-97.650002,"y":-7.450000,"z":-234.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":4.400000,"platform":"platform09","order":102,"material":"","type":1,"place":100},{"boxId":"9856687070001_3440101X207P0400700_0","x":-97.650002,"y":10.050000,"z":-234.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":3.960000,"platform":"platform09","order":103,"material":"","type":1,"place":100},{"boxId":"9856687070002_3440101X086P0400700_0","x":-97.650002,"y":27.549999,"z":-234.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":3.920000,"platform":"platform09","order":104,"material":"","type":1,"place":100},{"boxId":"9851973520005_00I69207027390521100-10_0","x":-97.650002,"y":45.049999,"z":-234.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":1.120000,"platform":"platform09","order":105,"material":"","type":1,"place":100},{"boxId":"9851973520006_00I69207027390521100-13_0","x":-97.650002,"y":62.549999,"z":-234.250000,"width":36.500000,"height":17.500000,"length":37.500000,"weight":1.120000,"platform":"platform09","order":106,"material":"","type":1,"place":100},{"boxId":"9849024950001_00J69207027171421805_0","x":-59.150002,"y":-2.950000,"z":-236.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":6.800000,"platform":"platform09","order":107,"material":"","type":1,"place":200},{"boxId":"9851973520005_00I69207027502293709-10_0","x":-97.150002,"y":-47.500000,"z":-194.250000,"width":37.500000,"height":35.000000,"length":37.500000,"weight":3.920000,"platform":"platform09","order":108,"material":"","type":1,"place":100},{"boxId":"9846940740001_C0201020931P0500800-10_0","x":-59.650002,"y":-53.250000,"z":-194.750000,"width":36.500000,"height":23.500000,"length":37.500000,"weight":0.814300,"platform":"platform09","order":109,"material":"","type":1,"place":200},{"boxId":"9848733500001_7780102B605P0400500_0","x":-106.900002,"y":-81.750000,"z":-48.000000,"width":18.000000,"height":6.500000,"length":254.000000,"weight":11.640000,"platform":"platform09","order":110,"material":"","type":1,"place":100},{"boxId":"9851960120001_spu-REP-INNER-21502507-1","x":-11.400000,"y":-83.500000,"z":-55.500000,"width":133.000000,"height":93.000000,"length":239.000000,"weight":200.000000,"platform":"platform09","order":111,"material":"","type":1,"place":100},{"boxId":"9851960120001_spu-REP-INNER-21502507-1-1","x":-11.400000,"y":9.500000,"z":-55.500000,"width":133.000000,"height":93.000000,"length":239.000000,"weight":200.000000,"platform":"platform09","order":112,"material":"","type":1,"place":100},{"boxId":"9819538780001_00J69207027320338482-2_0","x":-36.400002,"y":88.500000,"z":-66.000000,"width":83.000000,"height":65.000000,"length":218.000000,"weight":96.000000,"platform":"platform09","order":113,"material":"","type":1,"place":100},{"boxId":"9819538780001_C00019VP910P0500800-5_0","x":26.850000,"y":77.250000,"z":-67.500000,"width":43.500000,"height":42.500000,"length":215.000000,"weight":39.500000,"platform":"platform09","order":114,"material":"","type":1,"place":100},{"boxId":"9846940740001_00I69207027520067755-5_0","x":20.600000,"y":113.250000,"z":-74.000000,"width":31.000000,"height":29.500000,"length":202.000000,"weight":18.500000,"platform":"platform09","order":115,"material":"","type":1,"place":100},{"boxId":"9848733500001_7780102B606P0400500_0","x":83.099998,"y":-100.750000,"z":-131.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":100.500000,"platform":"platform09","order":116,"material":"","type":1,"place":100},{"boxId":"9846940740001_00J69207027300838221-4_0","x":83.099998,"y":-42.250000,"z":-131.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":58.500000,"platform":"platform09","order":117,"material":"","type":1,"place":100},{"boxId":"9819538780001_C00019RJ999P0400600-21_0","x":83.099998,"y":16.250000,"z":-131.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":41.500000,"platform":"platform09","order":118,"material":"","type":1,"place":100},{"boxId":"9856687650002_00I69207027502248602_0","x":83.099998,"y":74.750000,"z":-131.000000,"width":56.000000,"height":58.500000,"length":88.000000,"weight":27.500000,"platform":"platform09","order":119,"material":"","type":1,"place":100},{"boxId":"9849024950001_00I69207027350181465-5_0","x":81.599998,"y":108.500000,"z":-148.500000,"width":53.000000,"height":9.000000,"length":53.000000,"weight":14.500000,"platform":"platform09","order":120,"material":"","type":1,"place":100},{"boxId":"9819538780001_00I69207027410706432-32_0","x":78.599998,"y":121.000000,"z":-151.500000,"width":47.000000,"height":16.000000,"length":47.000000,"weight":28.799999,"platform":"platform09","order":121,"material":"","type":1,"place":100},{"boxId":"9819538780001_C00019QK919P0400600-7_0","x":85.099998,"y":-88.250000,"z":-47.250000,"width":60.000000,"height":83.500000,"length":79.500000,"weight":50.000000,"platform":"platform09","order":122,"material":"","type":1,"place":100},{"boxId":"9819538780001_0560100H029P0400500-15_4","x":78.750000,"y":-25.950001,"z":-48.349998,"width":47.299999,"height":41.099998,"length":77.300003,"weight":120.000000,"platform":"platform09","order":123,"material":"","type":1,"place":100},{"boxId":"9819538780001_0560100H029P0400500-15_3","x":78.750000,"y":15.150000,"z":-48.349998,"width":47.299999,"height":41.099998,"length":77.300003,"weight":120.000000,"platform":"platform09","order":124,"material":"","type":1,"place":100},{"boxId":"9819538780001_0560100H029P0400500-15_2","x":78.750000,"y":56.250000,"z":-48.349998,"width":47.299999,"height":41.099998,"length":77.300003,"weight":120.000000,"platform":"platform09","order":125,"material":"","type":1,"place":100},{"boxId":"9819538780001_0560100H029P0400500-15_1","x":78.750000,"y":97.349998,"z":-48.349998,"width":47.299999,"height":41.099998,"length":77.300003,"weight":120.000000,"platform":"platform09","order":126,"material":"","type":1,"place":100},{"boxId":"9849024950001_77801011013P0400503-3_0","x":82.849998,"y":-103.250000,"z":22.250000,"width":55.500000,"height":53.500000,"length":59.500000,"weight":196.000000,"platform":"platform09","order":127,"material":"","type":1,"place":100},{"boxId":"9849024950001_77801011013P0400503-4_0","x":82.849998,"y":-49.750000,"z":22.250000,"width":55.500000,"height":53.500000,"length":59.500000,"weight":196.000000,"platform":"platform09","order":128,"material":"","type":1,"place":100},{"boxId":"9819538780001_60401914931P0400500-8_0","x":75.599998,"y":-5.300000,"z":14.750000,"width":41.000000,"height":35.400002,"length":44.500000,"weight":16.950001,"platform":"platform09","order":129,"material":"","type":1,"place":100},{"boxId":"9841166430001_7780101Y436P0400500-1_0","x":75.599998,"y":30.100000,"z":14.750000,"width":41.000000,"height":35.400002,"length":44.500000,"weight":9.500000,"platform":"platform09","order":130,"material":"","type":1,"place":100},{"boxId":"9848733500001_49401029858P0400700-3_0","x":74.599998,"y":61.549999,"z":12.000000,"width":39.000000,"height":27.500000,"length":39.000000,"weight":2.900000,"platform":"platform09","order":131,"material":"","type":1,"place":100},{"boxId":"9846940740001_C00019ZA996P0500800-2_0","x":-31.900000,"y":-21.500000,"z":137.500000,"width":92.000000,"height":217.000000,"length":147.000000,"weight":184.000000,"platform":"platform09","order":132,"material":"","type":1,"place":100},{"boxId":"9846940740001_C00019ZA996P0500800-1_0","x":60.099998,"y":-21.500000,"z":137.500000,"width":92.000000,"height":217.000000,"length":147.000000,"weight":184.000000,"platform":"platform09","order":133,"material":"","type":1,"place":100},{"boxId":"9851973520005_34401919612P0400500-5_0","x":-38.500000,"y":106.250000,"z":84.250000,"width":40.500000,"height":38.500000,"length":78.800003,"weight":21.450001,"platform":"platform09","order":134,"material":"","type":1,"place":200},{"boxId":"9851973520006_34401919612P0400500-4_0","x":40.299999,"y":106.250000,"z":84.250000,"width":40.500000,"height":38.500000,"length":78.800003,"weight":21.450001,"platform":"platform09","order":135,"material":"","type":1,"place":200},{"boxId":"9851973520005_34401919612P0400500-4_0","x":-38.500000,"y":106.250000,"z":124.750000,"width":40.500000,"height":38.500000,"length":78.800003,"weight":21.450001,"platform":"platform09","order":136,"material":"","type":1,"place":200},{"boxId":"9851973520006_34401919612P0400500-5_0","x":40.299999,"y":106.250000,"z":124.750000,"width":40.500000,"height":38.500000,"length":78.800003,"weight":21.450001,"platform":"platform09","order":137,"material":"","type":1,"place":200},{"boxId":"9851973520006_0360190U788P0400500-2_0","x":-38.900002,"y":106.250000,"z":165.250000,"width":40.500000,"height":38.500000,"length":78.000000,"weight":21.250000,"platform":"platform09","order":138,"material":"","type":1,"place":200},{"boxId":"9851973520006_0360190U788P0400500-3_0","x":39.099998,"y":106.250000,"z":165.250000,"width":40.500000,"height":38.500000,"length":78.000000,"weight":21.250000,"platform":"platform09","order":139,"material":"","type":1,"place":200},{"boxId":"9819538780001_00J69207027200330926-4_0","x":-54.900002,"y":-21.500000,"z":274.000000,"width":72.000000,"height":217.000000,"length":122.000000,"weight":253.000000,"platform":"platform09","order":140,"material":"","type":1,"place":200},{"boxId":"9819538780001_64301932648P0400500-6_0","x":-54.900002,"y":-21.500000,"z":346.000000,"width":72.000000,"height":217.000000,"length":122.000000,"weight":249.500000,"platform":"platform09","order":141,"material":"","type":1,"place":200},{"boxId":"9851973520005_34401919881P0400500-6_2","x":-96.650002,"y":100.500000,"z":306.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":142,"material":"","type":1,"place":100},{"boxId":"9851973520005_34401919881P0400500-6_1","x":-58.150002,"y":100.500000,"z":306.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":143,"material":"","type":1,"place":100},{"boxId":"9851973520005_34401919881P0400500-6_0","x":-19.650000,"y":100.500000,"z":306.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":144,"material":"","type":1,"place":100},{"boxId":"9851973520005_00J69207027330210282-8_0","x":-74.150002,"y":117.750000,"z":299.250000,"width":83.500000,"height":7.500000,"length":122.500000,"weight":7.500000,"platform":"platform09","order":145,"material":"","type":1,"place":100},{"boxId":"9851973520006_00J69207027330210282-8_0","x":-74.150002,"y":125.250000,"z":299.250000,"width":83.500000,"height":7.500000,"length":122.500000,"weight":7.500000,"platform":"platform09","order":146,"material":"","type":1,"place":100},{"boxId":"9855115220006_4420100H308P0400501-1_0","x":41.099998,"y":-22.150000,"z":273.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":116.000000,"platform":"platform09","order":147,"material":"","type":1,"place":100},{"boxId":"9855115220007_4420100H308P0400501-1_0","x":41.099998,"y":-22.150000,"z":343.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":116.000000,"platform":"platform09","order":148,"material":"","type":1,"place":100},{"boxId":"9851973520006_34401919881P0400500-6_0","x":25.350000,"y":99.199997,"z":306.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":149,"material":"","type":1,"place":100},{"boxId":"9851973520006_34401919881P0400500-7_2","x":95.349998,"y":-116.500000,"z":306.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":150,"material":"","type":1,"place":100},{"boxId":"9851973520006_34401919881P0400500-7_1","x":95.349998,"y":-89.500000,"z":306.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":151,"material":"","type":1,"place":100},{"boxId":"9851973520006_34401919881P0400500-7_0","x":95.349998,"y":-62.500000,"z":306.000000,"width":38.500000,"height":27.000000,"length":136.000000,"weight":30.200001,"platform":"platform09","order":152,"material":"","type":1,"place":100},{"boxId":"9851973520006_00J69207027260497100-9_0","x":95.099998,"y":-31.250000,"z":264.500000,"width":38.000000,"height":35.500000,"length":53.000000,"weight":15.660000,"platform":"platform09","order":153,"material":"","type":1,"place":100},{"boxId":"9855115220001_4420100H308P0400501-1_0","x":-80.900002,"y":-22.150000,"z":417.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":116.000000,"platform":"platform09","order":154,"material":"","type":1,"place":100},{"boxId":"9855115220003_4420100H308P0400501-1_0","x":-10.900000,"y":-22.150000,"z":417.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":116.000000,"platform":"platform09","order":155,"material":"","type":1,"place":100},{"boxId":"9855115220004_4420100H308P0400501-1_0","x":-80.900002,"y":-22.150000,"z":487.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":116.000000,"platform":"platform09","order":156,"material":"","type":1,"place":100},{"boxId":"9855115220005_4420100H308P0400501-1_0","x":-10.900000,"y":-22.150000,"z":487.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":116.000000,"platform":"platform09","order":157,"material":"","type":1,"place":100},{"boxId":"9855115220002_4420100H308P0400501-1_0","x":-80.900002,"y":-22.150000,"z":557.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":116.000000,"platform":"platform09","order":158,"material":"","type":1,"place":100},{"boxId":"9849024950001_7780102D405P0400500-1_0","x":-10.900000,"y":-22.150000,"z":557.000000,"width":70.000000,"height":215.699997,"length":70.000000,"weight":105.599998,"platform":"platform09","order":159,"material":"","type":1,"place":100},{"boxId":"9846940740001_00I69207027411462216-7_0","x":-91.400002,"y":99.199997,"z":483.500000,"width":49.000000,"height":27.000000,"length":203.000000,"weight":28.500000,"platform":"platform09","order":160,"material":"","type":1,"place":100},{"boxId":"9846940740001_00I69207027440777011-3_0","x":-95.400002,"y":121.199997,"z":402.500000,"width":41.000000,"height":17.000000,"length":41.000000,"weight":20.900000,"platform":"platform09","order":161,"material":"","type":1,"place":100},{"boxId":"9851973520005_0360190U788P0400500-3_0","x":-46.650002,"y":104.949997,"z":421.000000,"width":40.500000,"height":38.500000,"length":78.000000,"weight":21.250000,"platform":"platform09","order":162,"material":"","type":1,"place":100},{"boxId":"9851973520005_0360190U788P0400500-2_0","x":-46.650002,"y":104.949997,"z":499.000000,"width":40.500000,"height":38.500000,"length":78.000000,"weight":21.250000,"platform":"platform09","order":163,"material":"","type":1,"place":100},{"boxId":"9851973520006_3440191N818P0400500-6_0","x":-6.150000,"y":104.949997,"z":421.250000,"width":40.500000,"height":38.500000,"length":78.500000,"weight":19.100000,"platform":"platform09","order":164,"material":"","type":1,"place":100},{"boxId":"9851973520005_7780101P338P0400500-2_0","x":64.099998,"y":-87.949997,"z":442.000000,"width":80.000000,"height":84.099998,"length":120.000000,"weight":135.500000,"platform":"platform09","order":165,"material":"","type":1,"place":100},{"boxId":"9851973520006_7780101P338P0400500-2_0","x":64.099998,"y":-3.850000,"z":442.000000,"width":80.000000,"height":84.099998,"length":120.000000,"weight":135.500000,"platform":"platform09","order":166,"material":"","type":1,"place":100},{"boxId":"9855064510001_00J69207027050077453-2_0","x":62.599998,"y":65.199997,"z":420.500000,"width":77.000000,"height":54.000000,"length":77.000000,"weight":30.000000,"platform":"platform09","order":167,"material":"","type":1,"place":100},{"boxId":"9819538780001_C00019C0607P0500800-9_0","x":62.099998,"y":102.449997,"z":410.000000,"width":56.000000,"height":20.500000,"length":76.000000,"weight":13.100000,"platform":"platform09","order":168,"material":"","type":1,"place":200},{"boxId":"9841166400001_C210104Z522P0500700-1_0","x":63.349998,"y":74.949997,"z":479.250000,"width":40.500000,"height":73.500000,"length":78.500000,"weight":18.000000,"platform":"platform09","order":169,"material":"","type":1,"place":200},{"boxId":"9819538780001_C000102V034P0500800-33_0","x":-4.150000,"y":107.300003,"z":491.000000,"width":44.500000,"height":43.200001,"length":61.000000,"weight":31.000000,"platform":"platform09","order":170,"material":"","type":1,"place":100},{"boxId":"9851973520005_7780101N883P0400501-1_0","x":64.099998,"y":-88.250000,"z":532.000000,"width":60.000000,"height":83.500000,"length":80.000000,"weight":51.500000,"platform":"platform09","order":171,"material":"","type":1,"place":200},{"boxId":"9851973520006_52801011555P0400500-1_0","x":64.099998,"y":-4.750000,"z":532.000000,"width":60.000000,"height":83.500000,"length":80.000000,"weight":51.000000,"platform":"platform09","order":172,"material":"","type":1,"place":200},{"boxId":"9851973520006_C000103M140P0500800-9_0","x":45.349998,"y":47.250000,"z":528.250000,"width":42.500000,"height":20.500000,"length":52.500000,"weight":5.400000,"platform":"platform09","order":173,"material":"","type":1,"place":100},{"boxId":"9846940740001_7810192Z862P0400700-9_0","x":45.099998,"y":68.000000,"z":528.000000,"width":42.000000,"height":21.000000,"length":52.000000,"weight":8.000000,"platform":"platform09","order":174,"material":"","type":1,"place":100},{"boxId":"9819538780001_00J69207027250450164-30_0","x":-43.900002,"y":95.199997,"z":561.000000,"width":46.000000,"height":19.000000,"length":46.000000,"weight":33.549999,"platform":"platform09","order":175,"material":"","type":1,"place":100}]';
			var jsonstr2 = '{"container_length":1192.000000,"container_width":231.800003,"container_height":260.000000,"container_max_load":23000.000000,"container_type_name":"40HQ"}'
            var objectArray= JSON.parse(jsonstr);
			var truckJsonObj = JSON.parse(jsonstr2);
            var container, stats;
            var camera, controls, scene, projector, renderer;
            var objects = [], plane;
            var mouse = new THREE.Vector2(), offset = new THREE.Vector3(), INTERSECTED, SELECTED; 
            init();
            animate();
            function init() {
                container = document.createElement( 'div' );
                document.body.appendChild( container );
                camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
                camera.position.x = -600;
                camera.position.y = 400;
                camera.position.z = 1000;
                controls = new THREE.TrackballControls( camera );
                controls.rotateSpeed = 1.0;
                controls.zoomSpeed = 1.2;
                controls.panSpeed = 0.8;
                controls.noZoom = false;
                controls.noPan = true;
                controls.staticMoving = false;
                controls.dynamicDampingFactor = 0.3;
                scene = new THREE.Scene();
                var ambientLight = new THREE.AmbientLight( Math.random() *0xffffff );
                scene.add( ambientLight );
                var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
                directionalLight.position.set( 0, 1, 0 );
                scene.add( directionalLight );
                var pointLight = new THREE.PointLight( 0xff0000, 1, 500 );
                pointLight.position.set( 0, 0, -200 );
                scene.add( pointLight );

                container_length = truckJsonObj.container_length;
                container_width = truckJsonObj.container_width;
                container_height = truckJsonObj.container_height;
                var cube_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( container_width, container_height, container_length, 1,1,1 ), 
                    new THREE.MeshBasicMaterial( { color:0xefb73e, wireframe:true } )
                );
                cube_1.position.x = 0;
                cube_1.position.y = 0;
                cube_1.position.z = 0;
                scene.add( cube_1 );

                truck_head_length = 145;
                var truck_head_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( 200, 100, truck_head_length, 1, 1, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_1.position.x = 0;
                truck_head_1.position.y = -50;
                truck_head_1.position.z = -(container_length/2 + truck_head_length/2);
                scene.add( truck_head_1 );
                
                truck_head_length_2 = 80;
                var truck_head_2 = new THREE.Mesh(
                    new THREE.BoxGeometry( 170, 60, truck_head_length_2, 1, 0, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_2.position.x = 0;
                truck_head_2.position.y = 30;
                truck_head_2.position.z = -(container_length/2 + truck_head_length_2/2);
                scene.add( truck_head_2 );
                
                truck_head_chimney_radius = 7;
                var truck_head_chimney1 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney1.position.x = 100;
                truck_head_chimney1.position.y = 50;
                truck_head_chimney1.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney1 );
                
                var truck_head_chimney2 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney2.position.x = -100;
                truck_head_chimney2.position.y = 50;
                truck_head_chimney2.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney2 );
        
                var truck_wheel_1 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_1.position.x = 110;
                truck_wheel_1.position.y = -100;
                truck_wheel_1.position.z = -(container_length/2 + truck_head_length_2/2 + 20) ;
                truck_wheel_1.rotation.x = 0;
                truck_wheel_1.rotation.y = 0;
                truck_wheel_1.rotation.z = 1.6;
                scene.add( truck_wheel_1 );
                
                var truck_wheel_2 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_2.position.x = -110;
                truck_wheel_2.position.y = -100;
                truck_wheel_2.position.z = -(container_length/2 + truck_head_length_2/2 + 20);
                truck_wheel_2.rotation.x = 0;
                truck_wheel_2.rotation.y = 0;
                truck_wheel_2.rotation.z = 1.6;
                scene.add( truck_wheel_2 );

                offset_2 = -240;
                var truck_wheel_5 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_5.position.x = container_width/2 + 5;
                truck_wheel_5.position.y = -100;
                truck_wheel_5.position.z = (container_length/2 + truck_head_length_2/2 + offset_2) ;
                truck_wheel_5.rotation.x = 0;
                truck_wheel_5.rotation.y = 0;
                truck_wheel_5.rotation.z = 1.6;
                scene.add( truck_wheel_5 );

                var truck_wheel_6 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_6.position.x = -container_width/2 - 5;
                truck_wheel_6.position.y = -100;
                truck_wheel_6.position.z = (container_length/2 + truck_head_length_2/2 + offset_2);
                truck_wheel_6.rotation.x = 0;
                truck_wheel_6.rotation.y = 0;
                truck_wheel_6.rotation.z = 1.6;
                scene.add( truck_wheel_6 );

                for (var i in objectArray) {
                    if (objectArray[i].type==2) {
						var cylinderTopR = objectArray[i].length / 2;
						var cylinderHeight = objectArray[i].height;
						if (objectArray[i].place == 1 || objectArray[i].place == 2)
						{
							cylinderHeight = objectArray[i].width;
						}
						
                        var object2 = new THREE.Mesh(
						    new THREE.CylinderGeometry(cylinderTopR, cylinderTopR, cylinderHeight, 60),
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object2.position.x = objectArray[i].x;
                        object2.position.y = objectArray[i].y;
                        object2.position.z = objectArray[i].z;
                        if (objectArray[i].place==1) {
                            object2.rotation.z = 55;
                        }
                        if (objectArray[i].place==2) {
                            object2.rotation.x = 55;
                        }
                        object2.width = objectArray[i].width;
                        object2.height = objectArray[i].height;
                        object2.length = objectArray[i].length;
                        object2.weight = objectArray[i].weight;
                        object2.platform = objectArray[i].platform;
                        object2.order = objectArray[i].order;
                        object2.materialInfo = objectArray[i].material;
                        object2.boxId = objectArray[i].boxId;
                        object2.type = objectArray[i].type;
                        object2.place = objectArray[i].place;
                        scene.add( object2 );
                        objects.push( object2 );
                    }
                    if (objectArray[i].type==1) {
						if (objectArray[i].place == 200)
						{
							var box_length = objectArray[i].width;
                            var box_width = objectArray[i].length;
						}
						else
						{
							var box_length = objectArray[i].length;
							var box_width = objectArray[i].width;
						}
						var box_height = objectArray[i].height;
                        var object = new THREE.Mesh(
                            new THREE.BoxGeometry( box_width, box_height, box_length, 1, 1, 1 ), 
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object.position.x = objectArray[i].x;
                        object.position.y = objectArray[i].y;
                        object.position.z = objectArray[i].z;
						object.length = objectArray[i].length;
						object.width = objectArray[i].width;
						object.height = objectArray[i].height;
                        object.weight = objectArray[i].weight;
                        object.platform = objectArray[i].platform;
                        object.order = objectArray[i].order;
                        object.materialInfo = objectArray[i].material;
                        object.boxId = objectArray[i].boxId;
                        object.type = objectArray[i].type;
                        object.place = objectArray[i].place;
                        scene.add( object );
                        objects.push( object );
                    }
                }

                plane = new THREE.Mesh(
                    new THREE.PlaneGeometry( 2000, 2000, 8, 8 ),
                    new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true, wireframe: true } )
                );
                plane.visible = true;
                scene.add( plane );
                projector = new THREE.Projector();
                renderer = new THREE.WebGLRenderer( { antialias: true } );
                renderer.sortObjects = false;
                renderer.setSize( window.innerWidth, window.innerHeight );
                renderer.shadowMapEnabled = true;
                renderer.shadowMapType = THREE.PCFShadowMap;
                container.appendChild( renderer.domElement );

                stats = new Stats();
                stats.domElement.style.position = 'absolute';
                stats.domElement.style.top = '0px';
                container.appendChild( stats.domElement );

                window.addEventListener( 'resize', onWindowResize, false );
                renderer.domElement.addEventListener( 'mousemove', onDocumentMouseMove, false );
                renderer.domElement.addEventListener( 'mousedown', onDocumentMouseDown, false );
                renderer.domElement.addEventListener( 'mouseup', onDocumentMouseUp, false );
            }

            function onDocumentMouseMove( event ) {
                event.preventDefault();
                mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;
                mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    if ( INTERSECTED != intersects[ 0 ].object ) {
                        INTERSECTED = intersects[ 0 ].object;
                        plane.position.copy( INTERSECTED.position );
                        plane.lookAt( camera.position );
                    }
                    container.style.cursor = 'pointer';
                } else {
                    container.style.cursor = 'auto';
                }
            }

            function onDocumentMouseDown( event ) {
                event.preventDefault();
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    controls.enabled = false;  
                    SELECTED = intersects[ 0 ].object;
                    var info = '<B>' + 
                        'boxId: ' + SELECTED.boxId +
                        '</br> x: ' + SELECTED.position.x + 
                        '</br> y: ' + SELECTED.position.y + 
                        '</br> z: ' + SELECTED.position.z + 
                        '</br> width: ' + SELECTED.width + 
                        '</br> height: ' + SELECTED.height + 
                        '</br> length: ' + SELECTED.length + 
                        '</br> weight: ' + SELECTED.weight +
                        '</br> platform: ' + SELECTED.platform +
                        '</br> order: ' + SELECTED.order +
                        '</br> material: ' + SELECTED.materialInfo + 
                        '</br> type: ' + SELECTED.type + 
                        '</br> place: ' + SELECTED.place + 
                        '</B>' +
                        '</br>' + 
                        '--------------------------' + 
                        '</br>' +
                        'type(1:箱体 2:圆柱体)' +
                        '</br>' +
                        'place(1:品字型 2:田字型)';
                    $("#objectInfo").html(info);
                }
            }

            function onDocumentMouseUp( event ) {
                event.preventDefault();
                controls.enabled = true;
                if ( INTERSECTED ) {
                    plane.position.copy( INTERSECTED.position );
                    SELECTED = null;
                }
                container.style.cursor = 'auto';
            }

            function onWindowResize() {
                camera.aspect = window.innerWidth / window.innerHeight;
                camera.updateProjectionMatrix();
                renderer.setSize( window.innerWidth, window.innerHeight );
            }

            function animate() {
                requestAnimationFrame( animate );
                render();
                stats.update();
            }

            function render() {
                controls.update();
                renderer.render( scene, camera );
            }

        </script>
        <div id="objectInfo" class="a2"><br/>点击物体获取相关属性</div>
        <style>
            .a2{position:absolute; left:20px; top:50px; bottom:0px; width:180px; height:250px; z-index:9999; background: #00FFFF; font-weight:bold; }
        </style>
    </body>
</html>